<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>权限管理-修改</title>
<link href="../../../static/css/layout.css" rel="stylesheet" type="text/css" />
<link href="../../../static/css/cb.css" rel="stylesheet" type="text/css" />
<link href="../../../static/css/n.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css"
	href="../../../static/easyui/themes/default/easyui.css" />
<link rel="stylesheet" type="text/css" href="../../../static/easyui/themes/icon.css" />
<link rel="stylesheet" type="text/css" href="../../../static/easyui/demo/demo.css" />
<link rel="stylesheet" type="text/css"
	href="../../../static/js/laypage/skin/laypage.css" />
<script type="text/javascript" src="../../../static/easyui/jquery.min.js"></script>
<script src="../../../static/js/vue/vue.min.js" charset="utf-8"></script>
<script type="text/javascript" src="../../../static/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="../../../static/js/laypage/laypage.js"></script>
<script type="text/javascript" src="../../../static/laydate/laydate.js"></script>
</head>
<body>
	<!-- 增加违规违纪记录弹出框 -->
	<table width="500px" height="300px" border="0" align="center"
		cellpadding="3" cellspacing="1" bgcolor="#AEDEF4">
		<tr>
			<td align="center" bgcolor="#E2F7FE">
				<form id="form_edit" name="form1">
					<table width="100%" border="0" cellspacing="1" cellpadding="3">
						<tr style="height: 25px">
							<td width="25%" align="center" style="font-size: 12px"><strong>模块名称:</strong></td>
							<td width="25%" align="left">
								<input type="text" name="name" id="name" style="width: 160px; height: 20px" value="${permission.name}"/>
							</td>
						</tr>
						<tr>
							<td width="25%" align="center" style="font-size: 12px"><strong>模块类型:</strong></td>
							<td width="25%" align="left">
								<select name="type" id="type" style="width: 160px; height: 30px">
								<option value="menu" <#if permission.type='menu'>selected="selected"</#if>>菜单</option>
								<option value="permission" <#if permission.type='permission'>selected="selected"</#if>>权限</option>
								</select>
							</td>
						</tr>
						<tr>
							<td width="25%" align="center" style="font-size: 12px"><strong>链接地址：</strong></td>
							<td width="25%" align="left">
								<input type="text" name="url" id="url" style="width: 160px; height: 20px" value="${permission.url}"/>
							</td>
						</tr>
						<tr>
							<td width="25%" align="center" style="font-size: 12px"><strong>代码：</strong></td>
							<td width="25%" align="left">
								<input type="text" name="code" id="code" style="width: 160px; height: 20px" value="${permission.code}"/>
							</td>
						</tr>
						<tr>
						<td width="25%" align="center" style="font-size: 12px"><strong>父模块:</strong></td>
							<td width="25%" align="left">
							<select name="parent" id="parent" style="width: 160px; height: 30px">
								<option value="0" <#if permission.pid=0>selected="selected"</#if>>矫正系统</option>
								<#list perList as per>
								<option value="${per.id}" <#if permission.pid=per.id>selected="selected"</#if>>${per.name}</option>
								</#list>
								</select></td>
						</tr>
						<tr>
							<td width="25%" align="center" style="font-size: 12px"><strong>按钮名称：</strong></td>
							<td width="25%" align="left">
								<input type="text" name="icon" id="icon" style="width: 160px; height: 20px" value="${permission.icon}"/>
							</td>
						</tr>
						<tr>
						<td width="25%" align="center" style="font-size: 12px"><strong>模块状态:</strong></td>
							<td width="25%" align="left">
							<select style="width: 160px; height: 30px" name="status" id="status"> 
								<option value="0" <#if permission.status=0>selected="selected"</#if>>禁用</option> 
								<option value="1" <#if permission.status=1>selected="selected"</#if>>启用</option> 
							</select>
							<input type="hidden" name="id" value="${permission.id}"/>
							</td>
						</tr>
					</table>
				</form>
			</td>
		</tr>
	</table>
</body>
</html>